<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="authMain"/>
        <title>Show Action</title>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><g:link class="home" controller="auth">Authorize Home</g:link></span>
            <span class="menuButton"><g:link class="list" action="list">Action List</g:link></span>
        </div>
        <div class="body">
            <h1>Show Action</h1>
            <g:if test="${flash.message}">
                <div class="message">${flash.message}</div>
            </g:if>
            <div class="dialog">
                <table>
                    <tbody>

                        <tr class="prop">
                            <td valign="top" class="name">Controller:</td>
                            <td valign="top" class="value"><g:link controller="controler" action="show" id="${action?.controler?.id}">${action?.controler?.name}</g:link></td>
                        </tr>

                        <tr class="prop">
                            <td valign="top" class="name">Action:</td>
                            <td valign="top" class="value">${action.name}</td>
                        </tr>

                        <tr class="prop">
                            <td valign="top" class="name">Roles:</td>
                            <td valign="top" style="text-align:left;" class="value">
                                <ul>
                                    <g:each var="r" in="${action.roles}">
                                        <li>${r?.name}</li>
                                    </g:each>
                                </ul>
                            </td>

                        </tr>

                    </tbody>
                </table>
            </div>
        </div>
    </body>
</html>
